package sy5_3;

import java.util.Queue;

public class Card {
    private String name;
    private double money;

    public Card(String name,double money){
        this.money=money;
        this.name=name;
    }
    public Card(){}
    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return name;
    }
    public void setMoney(double money){
        this.money=money;
    }
    public double getMoney(){
        return money;
    }

    @Override
    public String toString() {
        return "Card{" +
                "name='" + name + '\'' +
                ", money=" + money +
                '}';
    }
}
